package web.admin.config;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import web.admin.AdminPage;


public class ConfigurationLeftMenu extends Panel {
    public ConfigurationLeftMenu(String id, final AdminPage parent) {
        super(id);
        add(new Link("mail") {

            @Override
            public void onClick() {

                Panel panel = new TemplatesConfigurationPanel("current");
                parent.setCurrentPanelTo(panel);
            }
        });
        add(new Link("home") {

            @Override
            public void onClick() {

                Panel panel = new ConfigurationPanel("current");
                parent.setCurrentPanelTo(panel);
            }
        });
    }
}
